package com.stm.bi.repository.dataobject.ods;

import com.baomidou.mybatisplus.annotation.TableName;

@TableName("ods_dept")
public class OdsDeptDO {
    /**
     * 部门ID
     */
    private Long id;

    /**
     * 部门编码
     */
    private String code;

    /**
     * 父部门ID
     */
    private Long parentId;

    /**
     * 祖级列表
     */
    private String ancestors;

    /**
     * 部门名称
     */
    private String name;

    /**
     * 显示顺序
     */
    private Integer idx;

    /**
     * 负责人
     */
    private String leader;

    /**
     * 负责人ID
     */
    private Long leaderId;

    /**
     * 部门类型
     */
    private String type;

    /**
     * 业务属性
     */
    private String businessAttr;

    /**
     * 业务性质
     */
    private String nature;

    /**
     * 部门水准
     */
    private String level;

    /**
     * 部门状态:1正常 0停用
     */
    private String status;

    private Long orgId;

    private String orgNo;

    public Long getId() {
        return id;
    }

    public OdsDeptDO setId(Long id) {
        this.id = id;
        return this;
    }

    public String getCode() {
        return code;
    }

    public OdsDeptDO setCode(String code) {
        this.code = code;
        return this;
    }

    public Long getParentId() {
        return parentId;
    }

    public OdsDeptDO setParentId(Long parentId) {
        this.parentId = parentId;
        return this;
    }

    public String getAncestors() {
        return ancestors;
    }

    public OdsDeptDO setAncestors(String ancestors) {
        this.ancestors = ancestors;
        return this;
    }

    public String getName() {
        return name;
    }

    public OdsDeptDO setName(String name) {
        this.name = name;
        return this;
    }

    public Integer getIdx() {
        return idx;
    }

    public OdsDeptDO setIdx(Integer idx) {
        this.idx = idx;
        return this;
    }

    public String getLeader() {
        return leader;
    }

    public OdsDeptDO setLeader(String leader) {
        this.leader = leader;
        return this;
    }

    public Long getLeaderId() {
        return leaderId;
    }

    public OdsDeptDO setLeaderId(Long leaderId) {
        this.leaderId = leaderId;
        return this;
    }

    public String getType() {
        return type;
    }

    public OdsDeptDO setType(String type) {
        this.type = type;
        return this;
    }

    public String getBusinessAttr() {
        return businessAttr;
    }

    public OdsDeptDO setBusinessAttr(String businessAttr) {
        this.businessAttr = businessAttr;
        return this;
    }

    public String getNature() {
        return nature;
    }

    public OdsDeptDO setNature(String nature) {
        this.nature = nature;
        return this;
    }

    public String getLevel() {
        return level;
    }

    public OdsDeptDO setLevel(String level) {
        this.level = level;
        return this;
    }

    public String getStatus() {
        return status;
    }

    public OdsDeptDO setStatus(String status) {
        this.status = status;
        return this;
    }

    public Long getOrgId() {
        return orgId;
    }

    public OdsDeptDO setOrgId(Long orgId) {
        this.orgId = orgId;
        return this;
    }

    public String getOrgNo() {
        return orgNo;
    }

    public OdsDeptDO setOrgNo(String orgNo) {
        this.orgNo = orgNo;
        return this;
    }
}
